/*
 *
 * Copyright (C) 2012 Walter Lütgenau
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package offset.nodes.client.editor.view.hyperlink;

/**
 *
 * @author Walter Lütgenau
 */
public class DataHyperlinkInfo {
    String nodeTypePrefixName; // the node type name of the node targetted by the hyperlink
    String virtualPageTemplateUUID; // the template used to display the node
    String workflowTransition;  // the transition, that shall be executed
    String nameProperty; // the name property for the hyperlink
    String targetUuid;
    boolean selectNode;
    public static final int REFERENCE_SUBNODE = 1;
    public static final int REFERENCE_TO_THIS = 2;
    public static final int REFERENCE_FROM_THIS = 3;
    int referenceType;
    public static final int SCHEMA_NEW = 1;
    public static final int SCHEMA_EXTENDED = 2;
    int schemaType;
    String contentType;
    /**
     * Shall the node be selected based on its type or shall all displayed properties be set by the user? In the latter case, a new node may be created.
     */
    public DataHyperlinkInfo() {
    }
    public String getNameProperty() {
        return nameProperty;
    }

    public String getNodeTypePrefixName() {
        return nodeTypePrefixName;
    }

    public void setNodeTypePrefixName(String nodeTypePrefixName) {
        this.nodeTypePrefixName = nodeTypePrefixName;
    }

    public String getVirtualPageTemplateUUID() {
        return virtualPageTemplateUUID;
    }

    public int getSchemaType() {
        return schemaType;
    }

    public void setSchemaType(int schemaType) {
        this.schemaType = schemaType;
    }

    public void setNameProperty(String nameProperty) {
        this.nameProperty = nameProperty;
    }

    public void setVirtualPageTemplateUUID(String virtualPageTemplateUUID) {
        this.virtualPageTemplateUUID = virtualPageTemplateUUID;
    }

    public int getReferenceType() {
        return referenceType;
    }

    public void setReferenceType(int referenceType) {
        this.referenceType = referenceType;
    }

    public String getTargetUuid() {
        return targetUuid;
    }

    public void setTargetUuid(String targetUuid) {
        this.targetUuid = targetUuid;
    }

    public boolean isSelectNode() {
        return selectNode;
    }

    public void setSelectNode(boolean selectNode) {
        this.selectNode = selectNode;
    }

    public String getWorkflowTransition() {
        return workflowTransition;
    }

    public void setWorkflowTransition(String workflowTransition) {
        this.workflowTransition = workflowTransition;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
}
